/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.course.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import javax.validation.constraints.NotNull;

/**
 * 课程 实体类
 *
 * @author
 * @since 2023-03-22
 */
@Data
@TableName("ts_course")
@ApiModel(value = "Course对象", description = "课程")
@EqualsAndHashCode(callSuper = true)
public class CourseEntity extends TenantEntity {

	/**
	 * 乐观锁
	 */
	@ApiModelProperty(value = "乐观锁")
	private String revision;
	/**
	 * 课程名字
	 */
	@ApiModelProperty(value = "课程名字")
	@NotNull
	private String name;
	/**
	 * 打折之后的价格
	 */
	@ApiModelProperty(value = "打折之后的价格")
	private Long priceDiscount;
	/**
	 * 正常价格
	 */
	@ApiModelProperty(value = "正常价格")
	private Long priceNormal;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sort;
	/**
	 * 已分配数量
	 */
	@ApiModelProperty(value = "已分配数量")
	private Integer buyCount;
	/**
	 * 课程简介
	 */
	@ApiModelProperty(value = "课程简介")
	private String summary;
	/**
	 * 课程章节数量
	 */
	@ApiModelProperty(value = "课程章节数量")
	private Integer chapterCount;
	/**
	 * 视频数量
	 */
	@ApiModelProperty(value = "视频数量")
	private Integer videoCount;
	/**
	 * 课程状态（上架下架）
	 */
	@ApiModelProperty(value = "课程状态（上架下架）")
	private Integer courseStatus;
	/**
	 * 封面图片
	 */
	@ApiModelProperty(value = "封面图片")
	private String coverImgId;
	/**
	 * 前置需求
	 */
	@ApiModelProperty(value = "前置需求")
	private String requirement;
	/**
	 * 课程提供知识
	 */
	@ApiModelProperty(value = "课程提供知识")
	private String knowledge;
	/**
	 * 当前课程归属分类id;当前课程归属分类id
	 */
	@ApiModelProperty(value = "当前课程归属分类id;当前课程归属分类id")
	private String catId;
	/**
	 * 老师id
	 */
	@ApiModelProperty(value = "老师id")
	private Long teacherId;
	/**
	 * 保密等级(秘密、内文、非密)
	 */
	@ApiModelProperty(value = "保密等级")
	private Integer secrecyLevel;

	/**
	 * 证书(1有证书，0 无)
	 */
	@ApiModelProperty(value = "证书")
	private Integer certificate;

	/**
	 * 学时
	 */
	@ApiModelProperty(value = "学时")
	private Integer period;

	/**
	 * 积分
	 */
	@ApiModelProperty(value = "积分")
	private Float integral;

}
